"""
This class basically keeps track of the mouse, needs to be able to keep track of buttons held for a period of time too
possibly just add a New Click variable on first down and clear it on next setPos()
"""
class mouse_c:
	def __init__(self):
		self.pos = (0,0)
		self.buttons = [0,0,0,0,0,0,0,0,0,0]

	def getPos(self):
		return self.pos
	def setPos(self, pos):
		self.pos = pos
	def setButton(self, buttonNo, state):
		self.buttons[buttonNo] = state
	def getButton(self, buttonNo):
		return self.buttons[buttonNo]

class mouseArea:
	def __init__(self, x, y, width, height, funcToCall):
		self.x = x
		self.y = y
		self.width = width
		self.height = height
		self.funcToCall = funcToCall

	#should jsut pass in the mouse object
	def checkArea(self, x, y):
		if x >= self.x and x <= self.x + self.width and y >= self.y and y <= self.y + self.height:
			#call the func, this way the object doesn't need to know where on the screen it is
			self.funcToCall(x - self.x, y - self.y)